package com.zsrt.java.day20161223.cg.homework;

import org.junit.Test;

public class ChangeTest01 {
	/**
	 * ������������ a,b ����λ�� int a = 10, b = 5;
	 * ��� a > b ����λ�� 
	 *
	 */
	@Test
	public void change(){
		int a = 10;
		int b = 5;
//	    int temp = 0;
	    System.out.println("a= "+ a +"\t" + "b= "+ b);
		if(a > b){
//			temp = a;
//			a = b;
//			b = temp; 
//	 λ�������
			a = a ^ b;
			b = a ^ b;
			a = a ^ b;
			System.out.println("a= "+ a +"\t" + "b= "+ b);
		}
	}
}
